<?php

namespace app\wenchuang\validate;

use think\Validate;

class ReportValidate extends Validate
{
    protected $rule = [
        'id' => 'require',
        'name' => 'require',
        'url' => 'require'
    ];

    protected $message = [
        'id.require' => '参数错误',
        'name.require' => '菜单名称不能为空',
        'url.require' => '跳转链接不能为空'
    ];

    protected $scene = [
        'add' => ['name','url'],
        'edit' => ['id','name','url']
    ];
}